package com.cxt.vo;

import com.cxt.entity.CarpoolInfo;
import com.cxt.entity.WaypointInfo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
/**
 * 拼车详情信息
 */
public class CarpoolVo {
    //拼车信息
    private CarpoolInfo carpoolInfo;
    //拼车点信息
    private List<WaypointInfo> waypointInfoList;
    public static CarpoolVo fromCarpoolInfoAndWaypoints(CarpoolInfo carpoolInfo, List<WaypointInfo> waypointInfoList) {
        return new CarpoolVo(carpoolInfo, waypointInfoList);
    }
}
